.class public final Llt/farmis/libraries/externalgps/ExternalGPSThread$1;
.super Ljava/lang/Object;
.source "ExternalGPSThread.kt"

# interfaces
.implements Llt/farmis/libraries/externalgps/providers/NMEADeviceManager$OnStatusChangeListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Llt/farmis/libraries/externalgps/ExternalGPSThread;-><init>(Llt/farmis/libraries/externalgps/providers/NMEADeviceManager;Llt/farmis/libraries/externalgps/nmea/NmeaParser;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Llt/farmis/libraries/externalgps/ExternalGPSThread;


# direct methods
.method constructor <init>(Llt/farmis/libraries/externalgps/ExternalGPSThread;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()V"
        }
    .end annotation

    .line 47
    iput-object p1, p0, Llt/farmis/libraries/externalgps/ExternalGPSThread$1;->this$0:Llt/farmis/libraries/externalgps/ExternalGPSThread;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onStatusChanged(Llt/farmis/libraries/externalgps/providers/Status;Llt/farmis/libraries/externalgps/providers/Status;)V
    .locals 1

    const-string v0, "oldStatus"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "status"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 49
    iget-object v0, p0, Llt/farmis/libraries/externalgps/ExternalGPSThread$1;->this$0:Llt/farmis/libraries/externalgps/ExternalGPSThread;

    invoke-virtual {v0}, Llt/farmis/libraries/externalgps/ExternalGPSThread;->getStatusListener()Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-interface {v0, p2}, Llt/farmis/libraries/externalgps/ExternalGPSThread$StatusListener;->onStatusChanged(Llt/farmis/libraries/externalgps/providers/Status;)V

    .line 51
    :cond_0
    sget-object v0, Llt/farmis/libraries/externalgps/providers/Status;->CONNECTED:Llt/farmis/libraries/externalgps/providers/Status;

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    sget-object p1, Llt/farmis/libraries/externalgps/providers/Status;->DISCONNECTED:Llt/farmis/libraries/externalgps/providers/Status;

    invoke-static {p2, p1}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 52
    iget-object p1, p0, Llt/farmis/libraries/externalgps/ExternalGPSThread$1;->this$0:Llt/farmis/libraries/externalgps/ExternalGPSThread;

    invoke-virtual {p1}, Llt/farmis/libraries/externalgps/ExternalGPSThread;->getMRunning()Ljava/util/concurrent/atomic/AtomicBoolean;

    move-result-object p1

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    :cond_1
    return-void
.end method
